'''

        日志方法

'''

import logging

def login():
    # ●在重试全部失败后，记录详细的错误信息。
    logger = logging.basicConfig(level=logging.DEBUG,
                                 filename=r'../log/a3mall.log',
                                 format='%(thread)d %(asctime)s %(message)s %(filename)s')

    return logger